###############################################################
##
##    PORTUGUESE EVENT IDs
##
##    ids:
##    805001, 805010, 805011  -  Fleet mutiny
##    805002  -  Assassination attempt on HoG
##    805003  -  Pact with Spain
##    805004  -  Anti-Comintern pact
##    805005  -  Help from Britain
##    805006  -  POR world fair
##    805007, 805012, 805016  -  POR-GER trades
##    805008  -  reaction to SCW
##    805014, 805015, 805017, 805018 - trading embargoes
##
###############################################################
##
##    ADDITIONAL EVENTS
##
##    804001 - SPA's part of the iberian pact
##    804002 - SPA acknowledges POR assistance in SCW
##    806001 - GER's part of the trade
##    806002, 806003 - GER's part of the embargo sequence
##    807001, 807002 - ENG's part of the embargo sequence
##
###############################################################
##
##    NOTES
##
##    The tungsten trade goody bags don't deduct from the
##    giver, neither does the British help event
##    As most of the goods being traded aren't represented
##    in HOI, I thought I might as well not deduct
##
##    Anti-Cominstern should work along the lines of
##    everyone else's
##
###############################################################


###########################
# 802044 - (POR) The Tejo warship mutiny (by Gwalcmai)
###########################
event = {
	id = 802044
	random = no
	country = POR

	trigger = { 
		exists = SPR
		exists = SPA
		event = 3100
		NOT = {
			war = { country = POR country = SPA }
		}
	}

	name = "The Tejo Warship Mutiny" #should i use tagus or tejo?
	desc="In September 1936, there was an attempted mutiny in the Portuguese fleet. Communist sailors took control of two ships (Afonso de Albuquerque and Do) and tried to leave Lisbon. They intended to join the Spanish Republican navy and fight the Nationalists. The secret police got wind of this and warned the Government. The Navy Minister ordered the shore batteries to stop them before they could leave the harbour. After taking 18 hits, the ships surrendered. The convicted sailors were sent to the Tarrafal prison camp in Cape Verde, which became known as the Camp of Slow Death"
	style = 0 

	date = { day = 17 month = september year = 1936 }

	action_a = { # attack the ships
		name = "Bomb away!"
		command = { type = dissent value = 5 }
		command = { type = sleepevent which = 802045 }
		command = { type = sleepevent which = 802046 }
	}
	action_b = { # negotiate
		name = "No, wait, we'll negotiate"
		command = { }
	} #Im concerned humans will always choose b. So theres an event that could hurt you if you choose this.
}

# 802045 - (POR) Negotiations go poorly (by Gwalcmai)
event = {
	id = 802045
	random = no
	country = POR

	trigger = {
		event = 802044
		random = 50
		NOT = {
			event = 802046
		}
	}

	name = "Negotiations Failed!"
	desc = "Our negotiations with the Mutineers have failed! They insist on their attempt to defect to Republican Spain. What should we do now?"
	style = 0

	date = { day = 19 month = september year = 1936 }
	offset = 1
	deathdate = { day = 29 month = september year = 1936 }
	action_a = {
		name = "Start shooting"
		command = { type = dissent value = 10 }
	}
}

# 802046 - (POR) Negotiations effective (by Gwalcmai)
event = {
	id = 802046
	random = no
	country = POR

	trigger = {
		event = 802044
		random = 50
		NOT = {
			event = 802045
		}
	}


	name = "Negotiations Succeed"
	desc = "Our representatives have met with the mutinous soldiers, who've decided to listen to reason. All is well again in the portuguese navy."
	style = 0

	date = { day = 19 month = september year = 1936 }
	offset = 1
	deathdate = { day = 29 month = september year = 1936 }

	action_a = {
		name = "Good, good"
		command = { type = sleepevent which = 802045 }
		command = { type = alignment which = communist value = 5 }
	}
}
# end mutiny event #


#########################
# 802047 - (POR) Salazar assassination (by Gwalcmai)
#########################
event = {
	id = 802047
	random = no
	country = POR

	trigger = {
		headofgovernment = 9002
	}

	name = "Attempt on Salazar's life"
	desc="On the 4th of July 1937 an attempt was made on the life of Salazar. A bomb went off in a street as his car passed, but he was unharmed. The portuguese secret police (PVDE) claimed the attack was the work of five members of the Red Legion group. Demonstrations of popular rejoicing were held in Lisbon. Both Hitler and Mussolini congratulated Salazar for his survival."
	style = 0

	date = { day = 15 month = june year = 1937 }
	offset = 50
	date = { day = 15 month = june year = 1938 }

	action_a = {
		name = "Blame the communists"
		command = { type = alignment which = fascist value = 5 }
		command = { type = dissent value = -2 }
	}
	action_b = {
		name = "Blame right-wing extremists"
		command = { type = alignment which = fascist value = -10 }
		command = { type = dissent value = 5 }
	}
}
# end assassins event #

  
################
# Iberian pact (by Gwalcmai)
################
### 802048 - (POR) The Iberian Pact (by Gwalcmai)

event = {
	id = 802048
	random = no
	country = POR

	name = "The Iberian Pact"
	desc="On March 17th, 1939, as Franco got ready to take Madrid, an agreement was signed between the portuguese government and the spanish nationalists. This agreement called Iberian Pact, assured that Portugal and Spain would stand together against any threat. When war broke out in Europe, the portuguese and spanish governments made a joint statement of neutrality. Franco later changed Spain's status from neutral to non-belligerent."

	action_a = {
		name = "Sign the Pact"
		command = { type = alignment which = fascist value = -25 }
	}
}

#### 802049 - (SPA) The Iberian Pact (by Gwalcmai)

event = {
	id = 802049
	random = no
	country = SPA

	trigger = {
		event = 3004 #SPA won the SCW
		NOT = { war = { country = SPA country = POR } }
	}

	name = "The Iberian Pact"
	desc="On March 17th, 1939, as Franco got ready to take Madrid, an agreement was signed between the portuguese government and the spanish nationalists. This agreement called Iberian Pact, assured that Spain and Portugal would stand together against any threat. When war broke out in Europe, the portuguese and spanish governments made a joint statement of neutrality. Franco later changed Spain's status from neutral to non-belligerent."

	date = { day = 1 month = january year = 1938 }
	offset = 10
	deathdate = { day = 30 month = december year = 1941 }

	action_a = {
	name = "Sign the Pact"
		command = { type = alignment which = fascist value = -25 }
		command = { type = trigger which = 802048 }
	}
}
# end iberian pact events #


##################
# 802050 - (POR) Anti-Comintern (by Gwalcmai)
##################
event = {
	id = 802050
	random = no
	country = POR

	trigger = {
		NOT = { 
			alliance = { country = GER country = POR }
			alliance = { country = POR country = SOV }
			alliance = { country = POR country = ENG }
		}
		exists = GER
		exists = ITA
		exists = JAP
		event = 172024
	}


	name = "The Anti-Comintern Pact"
	desc = "In April 1939, Germany, Italy, Spain and Japan signed a pact to stand together against international communism. The Italian ambassador in Lisbon tried to get Portugal to sign it too, but Salazar refused."
	style = 0

	date = { day = 1 month = april year = 1939 }
	offset = 15
	deathdate = { day = 1 month = april year = 1941 }

	action_a = {
		name = "Refuse to sign"
		command = { type = alignment which = democratic value = 10 }
		command = { type = alignment which = communist value = 5 }
	}
	action_b = {
		name = "Sign the agreement"
		command = { type = alignment which = communist value = -50 }
	}
}
# end anti-comintern #


###################
# 802051 - (POR) British support (by Gwalcmai)
###################
event = {
	id = 802051
	random = no
	country = POR

	name = "British support for portuguese rearmament"
	desc = "When the Spanish civil war broke out, Salazar was startled to hear Portugal was very close to being unable to defend it's borders. He decided therefore to start a rearmament program for the portuguese military. In August of 1939 the United Kingdom promised to provide some assistance in carrying out those plans. The start of the war came in the way, however, and the program was only completed in September 1943."
	style = 0

	action_a = {
		name = "Thank you"
		command = { type = coalpool value = 100 }
		command = { type = steelpool value = 50 }
		command = { type = rubberpool value = 50 }
		command = { type = oilpool value = 10 }
		command = { type = alignment which = democratic value = 15 }
	} #should also reduce ENG's pools, but...
}

### 802052 - (POR) British support for portuguese rearmament (by Gwalcmai)

event = {
	id = 802052
	random = no
	country = POR

	name = "British support for portuguese rearmament"
	desc = "When the Spanish civil war broke out, Salazar was startled to hear Portugal was very close to being unable to defend it's borders. He decided therefore to start a rearmament program for the portuguese military. In August of 1939 the United Kingdom promised to provide some assistance in carrying out those plans. The start of the war came in the way, however, and the program was only completed in September 1943."
	style = 0

	action_a = {
		name = "Thank you"
		command = { type = steelpool value = 500 }
		command = { type = rubberpool value = 500 }
		command = { type = alignment which = democratic value = 30 }
		command = { type = steal_tech which = ENG } 
	}
}

### 272151 - (ENG) Offering Portugal help (by Gwalcmai)

event = {
	id = 272151
	random = no
	country = ENG

	trigger = {
		NOT = {
			alliance = { country = GER country = POR }
			alliance = { country = SOV country = POR }
		}
		atwar = no # will probably never fire... :)
	}

	name = "Offering Portugal help"
	desc = "Starting in the early 1930s, Portugal began a rearmament program to bring their forces up to date. This process, which started slowly, was accelerated with the start of the Spanish Civil War. The British government, trying to influence Portugal away from Germany, offered it's help."
	style = 0

	date = { day = 1 month = january year = 1939 }
	offset = 360
	deathdate = { day = 1 month = january year = 1940 }

	action_a = {
		name = "Offer limited help"
		command = { type = influence value = -3 }
		command = { type = trigger which = 802051 }
	}
	action_b = {
		name = "Leave them on their own"
		command = { }
	}
	action_c = {
		name = "Offer big aid package"
		command = { type = influence value = -3 }
		command = { type = trigger which = 802052 }
	}
}
# end brit support #


##################
# 802053 - (POR) Portugal world fair (by Gwalcmai)
##################
event = {
	id = 802053
	random = no
	country = POR

	trigger = { atwar = no }

	name = "The Portuguese World Exhibition"
	desc = "In 1940, as war raged in Europe, Portugal commemorated what Salazar's government called the double centennial. This represented the 800 years since Portugal's independence from Leon, and the anniversary of the 1640 revolution. As part of these celebrations, the government organized a great exhibition in Lisbon, where the whole portuguese speaking world was to be represented. Most portuguese artists participated in this effort, and the exhibition was seen throughout the country as a great feat."
	style = 0

	date = { day = 23 month = june year = 1940 }

	action_a = {
		name = "Inaugurate exhibition"
		command = { type = dissent value = -10 }
		command = { type = supplies value = -200 }
	} #Any other effects? This is double 'parade in capital'
}
# end POR world fair #


#################
# 802054 - (POR) volfram trade (by Gwalcmai)
#################
event = {
	id = 802054
	random = no
	country = POR

	trigger = {
		NOT = { alliance = { country = ENG country = POR } }
		not = { alliance = { country = SOV country = POR } }
		war = { country = GER country = SOV }
		war = { country = ENG country = GER }
		atwar = no
	}

	name = "Trade Deal between Portugal and Germany"
	desc = "During the war the amount of portuguese exports to Germany grew. Germany needed minerals like tungsten, chrome and zinc, which Portugal extracted. The german people also needed fruit and fish. Germany found itself paying high prices for it's raw materials and foodstuffs. One example is tungsten. Tungsten (or wolfram) was very important in the production of hardened steel for armour plating, ammunitions and industrial machinery. After declaring war on the Soviet Union, Germany was cut off from the main production center of China, where it had supplied itself, and had to turn to Portugal and Spain for help. The Allies competed for the Iberian production, and the price of the ore rose quickly, going from $639/ton in 1939 to over $27,000/ton in 1942. In 1941, Germany managed to strike a deal with Portugal, in which Portugal guaranteed a stable price for tungsten. In exchange, German exports to Portugal would be made at 1938 prices."
	style = 0

	date = { day = 3 month = january year = 1941 }
	offset = 10
	deathdate = { day = 1 month = may year = 1942 }

	action_a = { 
		name = "Sign trade agreement"
		command = { type = steelpool value = 360 }
		command = { type = coalpool value = 720 }
		command = { type = rubberpool value = 180 }
		command = { type = industry which = -1 value = 1 } #1 IC and raws to keep it going for 1 year.
		command = { type = infrastructure which = -1 value = 10 } #rail wagons and OPEL trucks
		command = { type = steal_tech which = GER }
		command = { type = steal_tech which = GER }
		command = { type = trigger which = 172164 }
	}
}

### 802055 - (POR) Germany renews the trade deals (by Gwalcmai)

event = { 
	id = 802055
	random = no
	country = POR

	trigger = {
		NOT = {
			OR = { #checking neutrality
			alliance = { country = SOV country = POR }
			alliance = { country = ENG country = POR }
			}
		}
		war = { country = GER country = SOV }
		war = { country = ENG country = GER }
	}



	name = "Germany renews the trade deals"
	desc = "Germany is still unable to supply itself anywhere else, and asks that we make another trade agreement."
	style = 0

	date = { day = 2 month = december year = 1942 }
	offset = 10
	deathdate = { day = 1 month = january year = 1944 }

	action_a = { 
		name = "Sign trade agreement"
		command = { type = steelpool value = 360 }
		command = { type = coalpool value = 720 }
		command = { type = rubberpool value = 180 }
		command = { type = infrastructure which = -1 value = 10 }
		command = { type = industry which = -1 value = 1 }
		command = { type = steal_tech which = GER }
		command = { type = trigger which = 172164 } #trigger Tungsten trade GER.
	}
}

### 802056 - (POR) Germany wishes to renew trade deals (by Gwalcmai)

event = {
	id = 802056
	random = no
	country = POR

	trigger = {
		event = 802055
		NOT = {
			OR = { #checking neutrality
			alliance = { country = SOV country = POR }
			alliance = { country = ENG country = POR }
			}
		}
		war = { country = GER country = SOV }
		war = { country = ENG country = GER }
	}



	name = "Germany wishes to renew trade deals"
	desc = "Germany is still unable to supply itself anywhere else, and asks that we make another trade agreement."
	style = 0

	date = { day = 2 month = may year = 1944 }
	offset = 10
	deathdate = { day = 1 month = january year = 1946 }

	action_a = { 
		name = "Sign trade agreement"
		command = { type = steelpool value = 300 }
		command = { type = coalpool value = 600 }
		command = { type = infrastructure which = -1 value = 10 }
		command = { type = steal_tech which = GER }
		command = { type = steal_tech which = GER }
		command = { type = industry which = -1 value = 1 }
		command = { type = trigger which = 172164 } # trigger Tungsten trade GER.
  }
}

### 172164 - (GER) A Tungsten Trade Deal (by Gwalcmai)

event = {
	id = 172164
	country = GER
	random = no
	persistent = yes

	name = "A trade deal with Portugal"
	desc = "Unable to supply itself with sorely needed tungsten and unable to get it from traditional sources in the Far East, Germany must trade with Iberian nations for it."
	style = 0

	action_a = {
		name = "Sign the agreement"
		command = { type = rubberpool value = 1000 }
	} #Germany will go through that rubber in a day or two, but POR or SPA are unlikely to have more, if they are to be deducted from them.
}
# end volfram trade #


#########################
# The spanish civil war #
#########################
# Over 8000 portuguese served in Franco's forces, and it was Salazar's
# first intention to send an expeditionary force to help the rebels.
# Portugal also loaned the nationalist government over 1 million pounds.

### 802057 - (POR) The Spanish Federalist Menace (by Gwalcmai)
event = {
	id = 802057
	random = no
	country = POR

	trigger = {
		event = 3100
		exists = SPA
		exists = SPR
		NOT = {
			war = { country = POR country = SPA }
		}
	}


	name = "The Spanish Federalist Menace"
	desc = "The army of Spain has risen against the leftist Republican government. We should help those fine fellows fight the growing communist threat! Our great Head of Government, Prof. Oliveira Salazar vows to do all that is in Portugal's power to help them. With the survival of the spanish Republic and the iberian federalist Azaa's government, Portugal's independence is at stake!" 
	# better desc required. This one is really crummy, sorry.
	style = 0

	date = { day = 1 month = august year = 1936 }
	offset = 5
	deathdate = { day = 31 month = december year = 1947 }

	action_a = {
		name = "We shall help fight the Red Menace"
		command = { type = access which = SPA }
		command = { type = alignment which = communist value = -30 }
		command = { type = trigger which = 802058 }
	}
}  

### 802058 - (SPA) Portuguese Volunteers (by Gwalcmai)

event = {
	id = 802058
	country = SPA
	random = no

	name = "Portuguese Volunteers"
	desc = "Hearing the news of our great revolution, the portuguese government vows to help us anyway they can. They have started by giving us permission to use their territory for militay operations, and portuguese volunteers have massed to help us fight the evil communists."

	action_a = {
		name = "OK"
		command = { type = manpowerpool value = 8 }
	}
}
# end SCW #


##################
# Embargo events #
##################
### 802059 - (POR) British Demand Embargo (by Gwalcmai)
event = {
	id = 802059
	random = no
	country = POR

	trigger = {
	event = 802055
	NOT = {
		alliance = { country = GER country = POR }
		alliance = { country = SOV country = POR }
		alliance = { country = ENG country = POR }
	}
	atwar = no
	}


	name = "British Demand Embargo"
	desc = "The Allies wanted to strangle the German economy through any means at their disposal. After instituting several measures to limit trading between neutral countries and the Axis, the Allies finally decided to block all of Germany's foreign trade. Portugal was considered by the Allies as an adjacent neutral, and as such subject to severe trade restrictions. Imports of critical supplies were limited to pre-war values, to avoid creating stockpiles that could be exported to the Axis. Meanwhile, the trade deals for tungsten and other portuguese products the government kept making with Germany was making the Allies very displeased with Portugal. By 1944, patience had all but ran out, and the Allies demanded the complete cessation of trading between Portugal and Germany. Finally, in June 1944 Portugal stops all trade with the Axis."
	style = 0

	date = { day = 1 month = january year = 1944 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Embargo the Axis"
		command = { type = sleepevent which = 802056 }
		command = { type = alignment which = democratic value = 10 }
		command = { type = trigger which = 172165 }
	}
	action_b = {
		name = "Refuse"
		command = { type = trigger which = 272152 }
	}
}

### 802060 - (POR) Britain Repeat Demands (by Gwalcmai)

event = {
	id = 802060
	random = no
	country = POR

	name = "Britain Repeat Demands"
	desc = "The British government insists that all trade between Portugal and the Axis should cease immediately. Failure to comply could have the direst consequences."
	style = 0

	action_a = {
		name = "Embargo the Axis"
		command = { type = sleepevent which = 802056 }
		command = { type = alignment which = democratic value = 10 }
		command = { type = trigger which = 172165 }
	}
	action_b = {
		name = "Refuse"
		command = { type = trigger which = 272153 }
	}
}

### 802061 - (POR) Germany declares war (by Gwalcmai)

event = {
	id = 802061
	random = no
	country = POR

	name = "Germany declares war"
	desc = "Our compliance with the Allies' demands for an embargo has led the Axis to declare war on us. It's time for the Allies to keep their word and protect us from German retaliation."
	style = 0

	action_a = {
		name = "OK"
		command = { type = alliance which = ENG }
		command = { type = alignment which = democratic value = 10 }
	}
}

### 802062 - (POR) Allies declare war (by Gwalcmai)

event = {
	id = 802062
	random = no
	country = POR

	name = "Allies declare war"
	desc = "The refusal to blockade Germany has driven the Allies to declare war on us. We should ask for the Axis' assistance."
	style = 0

	action_a = {
		name = "OK"
		command = { trigger which = 172166 }
	}
}

### 272152 - (ENG) Portuguese Refusal (by Gwalcmai)

event = {
	id = 272152
	random = no
	country = ENG

	name = "Portuguese refusal"
	desc = "Despite continued demands, Portugal refuses to embargo Germany. It's trading is supplying the Nazis with much needed tungsten, canned food, tin and wool products."
	style = 0

	action_a = {
		name = "Ignore them"
		command = { }
	}
	action_b = {
		name = "Repeat demand"
		command = { type = trigger which = 802060 }
	}
	action_c = {
		name = "Make them pay for their stubbornness"
		command = { type = war which = POR }
		command = { type = trigger which = 802062 }
	}
}

### 272153 - (ENG) Portuguese Refusal (by Gwalcmai)

event = {
	id = 272153
	random = no
	country = ENG

	name = "Portuguese final refusal"
	desc = "Even after another warning, Portugal will not embargo the Axis"
	style = 0

	action_a = {
		name = "Ignore them"
		command = { }
	}
	action_b = {
		name = "Make them pay for their stubbornness"
		command = { type = war which = POR }
		command = { type = trigger which = 802062 }
	}
}

### 172165 - (GER) Portuguese embargo (by Gwalcmai)

event = {
	id = 172165
	random = no
	country = GER

	name = "Portuguese embargo"
	desc = "Portugal has given in to English pressure and refuses to trade with us."
	style = 0

	action_a = {
		name = "Ignore them."
		command = { }
	}
	action_b = {
		name = "We'll avenge this!"
		command = { type = war which = POR }
		command = { type = trigger which = 802061 }
	}
}

### 172166 - (GER) Portugal asks for help (by Gwalcmai)

event = {
	id = 172166
	random = no
	country = GER

	name = "Portugal asks for help"
	desc = "The Allies have declared war on Portugal because it refused to stop trading with us. Portugal now asks for our assistance."
	style = 0

	action_a = {
		name = "Bring them in"
		command = { type = alliance which = POR }
	}
	action_b = {
		name = "We asked for nothing"
		command = { }
  	}
}

################################################################################
#                 HlvtnCndn's portuguese events
################################################################################

##############################################
#802063 - (POR) Portuguese Neutrality (by HlvtnCndn)
##############################################

event = {
	id = 802063
	random = no
	country = POR

	trigger = {
		alignment = fascist
		war = { country = ENG country = GER }
		NOT = { #Don't trigger if Portugal is at war with Allies or Axis
			war = { country = POR country = GER }
			war = { country = POR country = ENG }
		}
	}

	name = "Portugal declares neutrality."
	desc = "Although the Portuguese dictator Salazar was ideologically sympathetic to the Axis powers, his country also had considerable historical ties to Britain. Salazar walked a careful line between alienating either side and managed to keep his country out of the war. Portugal declared its neutrality on September 1, 1939, immediately after the German invasion of Poland."
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Declare neutrality, and maintain your distance from both sides."
		command = { type = alignment which = democratic value = 30 }
		command = { type = alignment which = fascist value = -30 }
	}

	action_b = {
		name = "Avoid explicitly declaring neutrality."
		command = { }
	}
}

##############################################
#802064 - (POR) Azores Negotiations (by HlvtnCndn)
##############################################

event = {
	id = 802064
	random = no
	country = POR

	trigger = {
		alignment = fascist
		war = { country = ENG country = GER }
		NOT = { #Don't trigger if Portugal is at war with Allies or Axis
			war = { country = POR country = GER }
			war = { country = POR country = ENG }
		}
	}

	name = "Portugal and Allies negotiate for Azores basing rights."
	desc = "Despite a desire to avoid alienating Germany, Portugal nevertheless entered into negotiations to lease basing rights in the Azores to the Allies."
	style = 0

	date = { day = 1 month = january year = 1941 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Begin negotiations."
		command = { type = alignment which = democratic value = 30 }
		command = { type = alignment which = fascist value = -30 }
	}

	action_b = {
		name = "Quickly reach an agreement to grant basing rights in the Azores to the Allies."
		command = { type = secedeprovince which = ENG value = 451 } # Province seceded since one-province access is impossible
		command = { type = sleepevent which = 802065 } # No need to trigger the other base-access event
		command = { type = alignment which = democratic value = 40 }
		command = { type = alignment which = fascist value = -40 }
	}

	action_c = {
		name = "Quickly reach an agreement to allow the Allies access to all bases in Portuguese territory."
		command = { type = access which = ENG } # Represents bigger commitment than just the Azores bases
		command = { type = sleepevent which = 802065 } # No need to trigger the other base-access event
		command = { type = alignment which = democratic value = 50 }
		command = { type = alignment which = fascist value = -50 }
		command = { type = dissent value = 5 } # Pro-fascist elements angered
	}

	action_d = {
		name = "Do not risk upsetting the Axis powers."
		command = { type = sleepevent which = 802065 } # Removes possibility of allowing basing rights
		command = { type = dissent value = 10 } # Pro-British elements angered
	}
}

##############################################
#802065 - (POR) Azores Basing Rights (by HlvtnCndn)
##############################################

event = {
	id = 802065
	random = no
	country = POR

	trigger = {
		war = { country = ENG country = GER }
		NOT = { #Don't trigger if Portugal is at war with Allies or Axis
			war = { country = POR country = GER }
			war = { country = POR country = ENG }
		}
	}


	name = "Portugal allows Allies to use bases in the Azores."
	desc = "In August of 1943 Portugal granted the Allies the right to establish air and naval bases in the Azores. This had a significant effect on the ability of the Allies to provide cover for the Altantic convoys."
	style = 0

	date = { day = 1 month = january year = 1943 }
	offset = 10
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = "Grant basing rights in the Azores to the Allies."
		command = { type = secedeprovince which = ENG value = 451 } # Province seceded since one-province access is impossible
		command = { type = alignment which = democratic value = 40 }
		command = { type = alignment which = fascist value = -40 }
	}

	action_b = {
		name = "Allow the Allies access to all bases in Portuguese territory."
		command = { type = access which = ENG } # Represents bigger commitment than just the Azores bases
		command = { type = alignment which = democratic value = 50 }
		command = { type = alignment which = fascist value = -50 }
		command = { type = dissent value = 5 } # Pro-fascist elements angered
	}

	action_c = {
		name = "Deny the Allies any basing rights."
		command = { type = dissent value = 10 } # Pro-British elements angered
	}
}
